

<%@ page import="sedh.project.AlocadorMunSer" %>
<html>
    <head>
       <g:render template="/header" />
    </head>
    <body>
    <g:render template="/informationBar" />

	<g:render template="/menu" />
        
        <div class="body">
            <h1>Editar Alocação de Servicos e Municipio</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${alocadorMunSerInstance}">
            <div class="errors">
                <g:renderErrors bean="${alocadorMunSerInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${alocadorMunSerInstance?.id}" />
                <g:hiddenField name="version" value="${alocadorMunSerInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="familias"><g:message code="alocadorMunSer.familias.label" default="Familias" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alocadorMunSerInstance, field: 'familias', 'errors')}">
                                    <g:textField name="familias" value="${fieldValue(bean: alocadorMunSerInstance, field: 'familias')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="municipio"><g:message code="alocadorMunSer.municipio.label" default="Municipio" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alocadorMunSerInstance, field: 'municipio', 'errors')}">
                                    <g:select name="municipio.id" from="${sedh.project.Municipio.list()}" optionKey="id" value="${alocadorMunSerInstance?.municipio?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="responsavel"><g:message code="alocadorMunSer.responsavel.label" default="Responsavel" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alocadorMunSerInstance, field: 'responsavel', 'errors')}">
                                    <g:textField name="responsavel" value="${alocadorMunSerInstance?.responsavel}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="servico"><g:message code="alocadorMunSer.servico.label" default="Servico" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alocadorMunSerInstance, field: 'servico', 'errors')}">
                                    <g:select name="servico.id" from="${sedh.project.Servico.list()}" optionKey="id" value="${alocadorMunSerInstance?.servico?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="telefone"><g:message code="alocadorMunSer.telefone.label" default="Telefone" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: alocadorMunSerInstance, field: 'telefone', 'errors')}">
                                    <g:textField name="telefone" value="${alocadorMunSerInstance?.telefone}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
